package com.easemob.chat.core;

import org.jivesoftware.smack.packet.PacketExtension;
import org.jivesoftware.smack.provider.PacketExtensionProvider;
import org.xmlpull.v1.XmlPullParser;

public class b
  implements PacketExtensionProvider
{
  public PacketExtension parseExtension(XmlPullParser paramXmlPullParser)
    throws Exception
  {
    a locala = new a("received");
    int i = 0;
    String str1 = paramXmlPullParser.getAttributeValue("", "mid");
    locala.a(str1);
    while (i == 0)
    {
      int j = paramXmlPullParser.next();
      if (j == 2)
      {
        String str2 = paramXmlPullParser.getName();
        if (paramXmlPullParser.isEmptyElementTag())
        {
          locala.setValue(str2, "");
        }
        else
        {
          j = paramXmlPullParser.next();
          if (j == 4)
          {
            String str3 = paramXmlPullParser.getText();
            locala.setValue(str2, str3);
          }
        }
      }
      else if ((j == 3) && (paramXmlPullParser.getName().equals("received")))
      {
        i = 1;
      }
    }
    return locala;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.core.b
 * JD-Core Version:    0.6.1
 */